llvm-fix-lld-linker-check
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 16 Dec 2025 11:47:30 +0000 (12:47 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 16 Dec 2025 11:47:30 +0000 (12:47 +0100)
remove regex anchor in lld linker detection to account for vendor, if
specified, being prepended to lld version string

Gbp-Pq: Name llvm-fix-lld-linker-check.diff

llvm/cmake/modules/AddLLVM.cmake

index 83772ed8d2b1332bea4bfeee00c32c17c9e33cf5..68c8761be666989c532bda6633eb71db22d4f0e8 100644 (file)
@@ -249,7 +249,7 @@ if (NOT DEFINED LLVM_LINKER_DETECTED AND NOT WIN32)
       set(LLVM_LINKER_DETECTED YES CACHE INTERNAL "")
       set(LLVM_LINKER_IS_GOLD YES CACHE INTERNAL "")
       message(STATUS "Linker detection: GNU Gold")
-    elseif("${stdout}" MATCHES "^LLD")
+    elseif("${stdout}" MATCHES "LLD")
       set(LLVM_LINKER_DETECTED YES CACHE INTERNAL "")
       set(LLVM_LINKER_IS_LLD YES CACHE INTERNAL "")
       message(STATUS "Linker detection: LLD")